﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace August.UI
{
    public class WheelBase
    {
        
        public PointF[] PointFs;

        internal PointF[] LastPointFs;
     
        public event PaintEventHandler ShapeWheelPaint;
        public event MouseEventHandler ShapeDownPaint;
        public event MouseEventHandler ShapeMovePaint;
        internal virtual void OnWheelPaint(PaintEventArgs e)
        {
            ShapeWheelPaint?.Invoke(this, e);
        }

        internal virtual bool OnDownPaint(MouseEventArgs e)
        {
            ShapeDownPaint?.Invoke(this, e);
            return true;
        }

        internal virtual void OnMovePaint(MouseEventArgs e)
        {
            ShapeMovePaint?.Invoke(this, e);
        }

        internal bool m_IsSelectedPoint = false;
        internal int m_selectedPointIndex = 0;
        internal bool m_IsScale = false;
    }
}
